package finelProject.model;

import org.apache.derby.client.am.DateTime;

public class Messages {
	private int      MessageId;
	private String   Autor;
	private int 	 RepublishNumber;
	private DateTime TimeOfPublish;
	private String	 Content;
	
	public Messages(int SetMessageID, String SetAutor, int SetRepublishNumber,DateTime SetTimeOfPublish,String SetContent){
		MessageId 		= SetMessageID;
		Autor 	  		= SetAutor;
		RepublishNumber = SetRepublishNumber;
		TimeOfPublish	= SetTimeOfPublish;
		Content			= SetContent;
	}
	public int getMessageId(){
		return MessageId;
	}
	public String getAutor(){
		return Autor;
	}
	public int getRepublishNumber(){
		return RepublishNumber;
	}
	public DateTime getTimeOfPublish(){
		return TimeOfPublish;
	}
	public String getContant(){
		return Content;
	}
	public void setRepublishNumber(int SetRepublishNumber){
		RepublishNumber = SetRepublishNumber;
	}

}

